package com.baitiaojun.user.feign;

import com.baitiaojun.api.domain.user.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @类名 ElasticsearchFeign
 * @作者 白条君
 * @创建日期 2023/1/4 18:52
 * @版本 1.0
 */
@FeignClient(value = "imooc-bilibili-elasticsearch", path = "/elasticsearch")
public interface ElasticsearchFeign {

    @PostMapping("/new-user-info")
    void saveUserInfo(@RequestBody UserInfo userInfo);
}
